package han.cirno.corrupt.components.school.impl.fafu

object FafuLibConst {
    private const val ROOT_ADDRESS:String="http://moblib.fafu.edu.cn:8080/search/searchList?kw={1}&pageIndex={2}&searchtype=&doctype=&xc=&pagingParam="
    private const val DETAIL_ROOT_ADDRESS:String="http://moblib.fafu.edu.cn:8080/search/bookDetail"
    fun getSearchPageAddress(keyword:String,page:Int):String{
        return ROOT_ADDRESS.replace("{1}",keyword).replace("{2}",page.toString())
    }

    fun getDetailAddress():String{
        return DETAIL_ROOT_ADDRESS
    }
}